@import "./sidebar.scss";
@import "./sandbox.scss";
@import "./variables.scss";
@import "./element-variables.scss";
@import "@haiking/micro-common/lib/crud.scss";
.body-loading {
  z-index: 9999999999 !important;
  .el-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    .el-icon-loading {
      // margin: 0 20px;
      // font-size: 30px;
      animation: none;
      width: 400px;
      height: 40px;
      display: inline-block;
      border-radius: 20px;
      background: #fff;
      border: 6px solid #5699f1;
      overflow: hidden;
      position: relative;
      &:before {
        content: "";
        width: 94px;
        height: 40px;
        background: url("~@/assets/images/loading.png") no-repeat center center;
        background-size: 80% 80%;
        position: absolute;
        left: -10px;
        top: -8px;
        animation: move 1.5s linear 1;

        @keyframes move {
          100% {
            left: 380px;
          }
        }
      }
      &::after {
        content: "";
        // box-shadow: 0px 45px 50px rgba(0, 0, 0, 0.25);
        display: block;
        border-radius: 10px;
        width: 0%;
        height: 100%;
        background-image: repeating-linear-gradient(
          45deg,
          #8bcfff 0%,
          #8bcfff 12px,
          white 12px,
          white 15px
        );

        // background-position: -2% 0;
        // background-size: 150%;
        animation: slider 1.5s linear 1;

        @keyframes slider {
          100% {
            width: 100%;
          }
        }
      }
    }
    // .el-loading-text {
    //   font-size: 20px;
    // }
  }
}
// 应用页面通用样式
// 不需要padding或者背景色可以不加
// 不需要padding或者背景色可以不加
.app-container {
  padding: 20px;
  background: #fff;
  // min-height: 100%;
  min-height: calc(100% - 30px);
}

.flex {
  display: flex;
}

.flex-center {
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.flow-popper {
  padding: 0 !important;
  border: none !important;
  background-color: unset !important;
  .el-popover__title {
    background: var(--theme);
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-size: 18px;
    padding: 12px 20px !important;
    margin-bottom: unset !important;
    color: #fff;
  }
}
.custom-message-box {
  width: 460px !important;
  .el-message-box__content {
    padding: 40px 15px;
    font-size: 16px;
  }
  .el-message-box__btns {
    .el-button--small {
      padding: 12px 20px;
    }
  }
}

.crud-tabs__card {
  .el-tabs__item.is-active {
    border-left: 1px solid transparent !important;
    border-right: 1px solid transparent !important;
  }
}

.avue-tree {
  .el-tree-node__label {
    font-size: 16px;
  }
  .el-tree-node__children {
    .el-tree-node__label {
      font-size: 14px;
    }
  }
  .el-tree > .el-tree-node {
    padding: 5px 0;
  }
}

.avue-dialog__footer {
  border-top: none !important;
}

.cell-approval {
  color: #f98c15 !important;
}
.page-card {
  height: auto !important;
  &--header {
    justify-content: space-between;
    padding-left: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e1e1;
  }
  .title {
    font-size: 20px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: var(--theme);
    line-height: 28px;

    &::before {
      content: "";
      width: 28px;
      height: 28px;
      display: inline-block;
      background-image: url("~@/assets/images/title.png");
      background-repeat: no-repeat;
      background-size: contain;
      vertical-align: middle;
      margin-right: 15px;
    }
  }

  .extra {
    margin-left: auto;
  }

  .content {
    padding-top: 18px;
    padding-bottom: 18px;

    // height: 100%;
  }
}

.el-loading-mask {
  background-color: rgba(255, 255, 255, 0.3)!important;
}

.crud-dialog.avue-custon-dialog {
  .el-dialog__body {
    padding: 20px !important;
  }

  .avue-crud__dialog__menu {
    display: none;
  }

  .avue-dialog__footer {
    display: flex;
    justify-content: center;
    padding: 14px 20px;
    background: #f1f5ff;
    border-radius: 0 0 10px 10px;

    button > i {
      display: none;
    }

    button > span {
      margin-left: unset;
    }
  }
}


.el-message[role=alert]{
  &.el-message--error,
  &.el-message--success,
  &.el-message--info {
    z-index: 54322!important;
  }
}

// 调整消息的手势
.msg-popper .tabs .tabs-head .tabs-item {
  cursor: auto !important;
}